<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户信息修改页</title>
</head>
<body>
    <form th:action="@{/user/update}" method="post">
        <input type="hidden" name="id" th:value="${user.id}" />
        <table>
            <tr>
                <th>姓名：</th>
                <td>
                    <input name="name" th:value="${user.name}" />
                </td>
            </tr>
            <tr>
                <th>年龄：</th>
                <td>
                    <input name="age" th:value="${user.age}" />
                </td>
            </tr>
            <tr>
                <th>生日：</th>
                <td>
                    <input type="date" name="birthday" th:value="${#dates.format(user.birthday, 'yyyy-MM-dd')}" />
                </td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <input type="submit" value="&nbsp;修&nbsp;&nbsp;改&nbsp;" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>